import 'package:json_annotation/json_annotation.dart';

part 'AppSendMessageReq.g.dart';

@JsonSerializable()
class AppSendMessageReq {
  int? conversationType;

  int? targetUserId;

  int? chatGroupId;

  int? messageType;

  String? message;

  AppSendMessageReq();

  AppSendMessageReq.create(
      {this.conversationType,
      this.targetUserId,
      this.chatGroupId,
      this.messageType,
      this.message});

  static AppSendMessageReq fromJson(Map<String, dynamic> json) {
    return _$AppSendMessageReqFromJson(json);
  }

  Map<String, dynamic> toJson() {
    return _$AppSendMessageReqToJson(this);
  }

  @override
  String toString() {
    return 'AppSendMessageReq{conversationType: $conversationType, targetUserId: $targetUserId, chatGroupId: $chatGroupId, messageType: $messageType, message: $message}';
  }
}
